<?php

use Illuminate\Database\Seeder;
use App\Model\Admin;
class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        factory(Admin::class,10)->create();
//        将id=1的数据变为自己熟悉的数据
        $user = Admin::find(1);
        $user->name = "哈哈";
        $user->password = "123456";
        $user->save();
    }
}
